<?php
    $user = $this->Session->read('Auth.User');
?><div id="user-box">
    <div class="right image"><?= $this->User->avatar($user) ?></div>
    <div class="left">
        <h2><?= $user['name'] ?></h2>
        <?= $this->Html->link('Odjavite se', '/app/logout') ?>
    </div>
</div>
